package com.sz.designpattern.behavior11.interpreter;

public class EqualExpression extends ArithmeticExpression{
    private ArithmeticExpression left,right;

    public EqualExpression(ArithmeticExpression left, ArithmeticExpression right) {
        this.left = left;
        this.right = right;
    }

    @Override
    protected Object interpret(Context context) {
        context.put((String) left.interpret(context), (Integer) right.interpret(context));
        return null;
    }
}
